package cn.com.ejiakanghu.vo;

import org.linlinjava.litemall.db.domain.LitemallAftersale;
import org.linlinjava.litemall.db.util.AftersaleConstant;

public class AfterSaleInfoVo {
    private Integer isService;
    private Integer type;
    private Integer status;

    public static AfterSaleInfoVo getInstance(LitemallAftersale aftersale) {
        AfterSaleInfoVo afterSaleInfoVo = new AfterSaleInfoVo();
        if (null == aftersale || AftersaleConstant.STATUS_INIT.equals(aftersale.getStatus())) {
            afterSaleInfoVo.setIsService(0);
        } else {
            afterSaleInfoVo.setIsService(1);
            afterSaleInfoVo.setType(aftersale.getType().intValue());
            afterSaleInfoVo.setStatus(aftersale.getStatus().intValue());
        }
        return afterSaleInfoVo;
    }

    public Integer getIsService() {
        return isService;
    }

    public void setIsService(Integer isService) {
        this.isService = isService;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
